﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoCore.Configuration
{
    /// <summary>
    /// 过滤配置元素
    /// </summary>
    public class FilterElement : ConfigurationElement
    {
        /// <summary>
        /// 过滤器
        /// </summary>
        [ConfigurationProperty("filter", IsRequired = true)]
        public string Filter
        {
            get
            {
                return base["filter"].ToString();
            }
            set
            {
                base["filter"] = value;
            }
        }

        /// <summary>
        /// 终结点
        /// </summary>
        [ConfigurationProperty("endpoint", IsRequired = true)]
        public string Endpoint
        {
            get
            {
                return base["endpoint"].ToString();
            }
            set
            {
                base["endpoint"] = value;
            }
        }

        /// <summary>
        /// 地址
        /// </summary>
        [ConfigurationProperty("address", IsRequired = true)]
        public string Address
        {
            get
            {
                return (string)base["address"];
            }
            set
            {
                base["address"] = value;
            }
        }
    }
}
